<template>
  <div id="center">
    <div class="up">
      <div
        class="bg-color-black item"
        v-for="item in titleItem"
        :key="item.title" style="text-align: center">
        <p class="ml-3 colorBlue fw-b fs-xl" style="font-size: 20px;">{{ item.title }}</p>
        <div>
          <dv-digital-flop
            class="dv-dig-flop ml-1 mt-2 pl-3"
            :config="item.number"/>
        </div>
      </div>

    </div>
  </div>
</template>

<script>
// import CenterChart from '@/components/ynnz/center/centerChartRate'

export default {
  data() {
    return {
      titleItem: [
        {
          title: '新增确诊',
          number: {
            number: [91, 443],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '新增本土',
          number: {
            number: [351],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '新增境外',
          number: {
            number: [8],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '新增无症状',
          number: {
            number: [3118],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '现有确诊',
          number: {
            number: [702, 778],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '现有本土',
          number: {
            number: [7, 914],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '现有境外',
          number: {
            number: [154],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        },
        {
          title: '现有无症状',
          number: {
            number: [87, 294],
            textAlign: 'center',
            content: '{nt}',
            style: {
              fontSize: 26
            }
          }
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
#center {
  display: flex;
  flex-direction: column;
  .up {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    .item {
      border-radius: 6px;
      padding-top: 8px;
      margin-top: 8px;
      width: 200px;
      height: 70px;
      .dv-dig-flop {
        width: 150px;
        height: 30px;
      }
    }
  }
  .down {
    padding: 6px 4px;
    padding-bottom: 0;
    width: 100%;
    display: flex;
    height: 255px;
    justify-content: space-between;
    .bg-color-black {
      border-radius: 5px;
    }
    .ranking {
      padding: 10px;
      width: 59%;
      .dv-scr-rank-board {
        height: 225px;
      }
    }
    .percent {
      width: 40%;
      display: flex;
      flex-wrap: wrap;
      .item {
        width: 50%;
        height: 120px;
        span {
          margin-top: 8px;
          font-size: 14px;
          display: flex;
          justify-content: center;
        }
      }
      .water {
        width: 100%;
        .dv-wa-le-po {
          height: 120px;
        }
      }
    }
  }
}
</style>
